package com.sky.entity;
//lombok是一款java代码生成工具，它可以自动生成get/set方法，toString方法，equals方法，hashCode方法，
// 还可以生成Builder模式的构造方法，使得创建对象更加方便。pom文件依赖如下：
//<dependency>
//    <groupId>org.projectlombok</groupId>
//    <artifactId>lombok</artifactId>
//    <version>1.18.12</version>
//    <scope>provided</scope>
//</dependency>
//<dependency>
//    <groupId>com.fasterxml.jackson.core</groupId>
//    <artifactId>jackson-databind</artifactId>
//    <version>2.11.3</version>
//</dependency>
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data//注解Data，生成get/set方法，toString方法，equals方法，hashCode方法
@Builder//注解Builder，生成Builder模式的构造方法,使得创建对象更加方便
@NoArgsConstructor//注解NoArgsConstructor，生成无参构造方法
@AllArgsConstructor//注解AllArgsConstructor，生成全参构造方法
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String username;

    private String name;

    private String password;

    private String phone;

    private String sex;

    private String idNumber;

    private Integer status;

    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")1
    private LocalDateTime updateTime;

    private Long createUser;

    private Long updateUser;

}
